<?php 
// no direct access 
defined('_JEXEC') or die('Restricted access'); 
?>
<!-- MiniFrontPage Module - Another Quality Freebie from TemplatePlazza.com --> 
<div class="minifrontpage-tabbed-slide-down-up" id="minifrontpage-<?php echo $mfpid; ?>">
<div id="mfptabs"></div>
<div style="display:table;table-layout:fixed;width:100%;padding:0 !important; margin:0 !important;" class="minifrontpageid">
	<div class="anim">
	<div class="anim-div" style="position:relative;">
		<?php for($row=1; $row<=$number_of_row;$row++){ ?>
			<?php if( $animate_row_count == 1 ) : ?>
			<div class="animate" style="padding:0 !important; margin:0 !important;display:table; width:100%;">
			<?php endif; ?>
				<div class="mfp-table-row" style="display:table-row;100%;">
					<?php for($column=1; $column<=$number_of_column;$column++) { ?>
					<div class="mfp-table-cell" style="display:table-cell;width:<?php echo $column_percentage_inner; ?>%;word-wrap:break-word !important">
						<div class="mfp-table-cell-inner">
						<?php
						$counting++;
						$item_pos = ( $item_direction == 'down' ) ? ( ( ( $column - 1 ) * $number_of_row ) + $row ) - 1: $counting - 1;
						$item = ( !empty( $list[$item_pos] ) ) ? $list[$item_pos] : null;
						if(!empty($item)){
							if(!empty($item->thumb)){
								echo showTagFP( $item->thumb, $item->link, (($thumbnail_position == 1) && ($thumb_embed == 1)), true, null, null );
							}
							
							if (!empty($show_title)) {
								echo showTagFP( $item->title, $item->link, true, $title_link, '<span class="mfp-introtitle">', '</span><br/>' );
							}
							
							if( $show_date OR $show_author ){
								echo '<span class="mfp-date-author">';
								echo showTagFP( $item->date, null, $show_date, false, null, null );
								echo showTagFP( ' - ', null, ($show_date && $show_author), false, null, null );
								echo showTagFP( $item->author, null, $show_author, false, null, null );
								echo '</span>';
							}
		
							if(!empty($item->thumb)){
								echo showTagFP( $item->thumb, $item->link, (($thumbnail_position == 0) && ($thumb_embed == 1)), true, null, null );
							}
									
							echo $item->introtext; 
							echo "<div class='clrfix'></div>";
							
							echo showTagFP( $item->categtitle, $item->categblog, $cat_title, $cat_title_link, '<span class="mfp-categ">', '</span>' , "Show Category : ".  $item->categtitle ); 
							
							if ($fulllink !=""){
								echo '<a class="mfp-readon" href="'.$item->link.'">'.$fulllink.'</a>';
							}
						}
						?>
						</div>
					</div>
					<?php } ?>
				</div>

			<?php
			if( $animate_row_count == $number_of_row_animate OR $row == $number_of_row){
				?>
				</div>
				<?php
				$animate_row_count = 0;
			}
			$animate_row_count++;
		}

	?>
	</div>
	</div>

	<?php	if($show_more_article){ ?>
	<div class="mfp-other-article" style="display:table-cell;width:<?php echo $column_percentage; ?>%;">
		<div class="mfp-other-article-inner">
			<span class="mfp-other-article-title"><?php echo $header_title_links; ?></span>
			<ul>
				<?php
				for($index = $counting; $index < count($list); $index++){
					$item = $list[$index];
					echo showTagFP( $item->title, $item->link, true, $title_link, '<li>', '</li>' );
				}
				?>
			</ul>
		</div>
	</div>
	<?php } ?>
</div>
</div>